package com.hntest;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * springboot的启动类
 * @author ZHOU
 *
 */

@SpringBootApplication
@ComponentScan(basePackages = "com.hntest.*")   //扫描IOC注解包
@EnableTransactionManagement    //开启事务管理
@MapperScan("com.hntest.dao")
public class SpringApp {

	public static void main(String[] args) {
		SpringApplication.run(SpringApp.class, args);
	}

}
